
package com.dhcc.bpm.modules.content.mapper;

import com.dhcc.bpm.modules.content.entity.News;
import com.dhcc.bpm.modules.content.vo.NewsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.content.vo.NewsVO2;

import java.util.List;

/**
 * @ClassName NewsMapper
 * @Description  新闻动态 Mapper 接口
 * @Author lijiacheng
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */

public interface NewsMapper extends BaseMapper<News> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param news
	 * @return
	 */
	List<NewsVO> selectNewsPage(IPage page, NewsVO news);

    List<NewsVO2> selectNewsPage2(IPage<NewsVO2> page, NewsVO2 news);
}
